<table border="1" >
    <tr>
        <td>Id</td>
        <td>Title</td>
        <td><a href="?mod=news&task=add">add</a> </td>
    </tr>

    <?php
        foreach($data as $item){
    ?>
            <tr>
                <td><?= $item["id"] ?></td>
                <td><?= $item["title"] ?></td>
                <td>
                    <a href="?mod=news&task=edit&id=<?= $item["id"] ?>">edit</a> |
                    <a href="?mod=news&task=remove&id=<?= $item["id"] ?>">delete</a>
                </td>
            </tr>
    <?php
        }
    ?>
</table>

